/** 商品接口访问函数模块 */
import axios from "../utils/request";

// 添加商品
export const addGoodsApi = (param) =>
  axios({
    url: "/goods/add",
    method: "post",
    data: param,
  });
//列表数据
export const goodsList = (param) =>
  axios({
    url: "/goods/index",
    method: "post",
    data: param,
  });
//修改

//上传图片
export const uploadGoodsApi = (param) =>
  axios({
    url: `/goods/upload`,
    method: "post",
    data: param,
  });
